﻿<Application x:Class="BackupGUI.App"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Startup="Application_Startup">
    <Application.Resources>

        <!-- Hintergrund für das Hauptfenster -->
        <LinearGradientBrush x:Key="WindowBackground" StartPoint="0,0" EndPoint="1,1">
            <GradientStop Offset="0" Color="White" />
            <GradientStop Offset="1" Color="LightGray" />
        </LinearGradientBrush>
        <!-- Hintergrund für Panels -->
        <LinearGradientBrush x:Key="PanelBackground" StartPoint="0,0" EndPoint="0,1">
            <GradientStop Offset="0" Color="White" />
            <GradientStop Offset="1" Color="LightGray" />
        </LinearGradientBrush>
        <!-- Hintergrund für Listen -->
        <LinearGradientBrush x:Key="ListBackground" StartPoint="0,0" EndPoint="1,4">
            <GradientStop Offset="0" Color="White" />
            <GradientStop Offset="1" Color="LightGray" />
        </LinearGradientBrush>
        <!-- ControlTemplate für Button -->
        <ControlTemplate x:Key="TemplateButtonDefault" TargetType="{x:Type Button}">
            <Border x:Name="OuterBorder" BorderBrush="Black" Background="#FF1E2736" BorderThickness="1" CornerRadius="3" SnapsToDevicePixels="True">

                <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" Width="Auto" />

            </Border>

            <ControlTemplate.Triggers>

                <Trigger Property="IsMouseOver" Value="True">
                    <Trigger.Setters>
                        <Setter Property="Background" Value="#FFA2A6AF" TargetName="OuterBorder" />
                    </Trigger.Setters>
                </Trigger>

                <Trigger Property="IsPressed" Value="True">
                    <Trigger.Setters>
                        <Setter Property="Background" Value="#FF72767F" TargetName="OuterBorder" />
                    </Trigger.Setters>
                </Trigger>

            </ControlTemplate.Triggers>

        </ControlTemplate>

        <!-- Stil für Button -->
        <Style TargetType="{x:Type Button}">
            <Style.Setters>
                <Setter Property="Margin" Value="5,5,5,5"/>
                <Setter Property="MinHeight" Value="25"/>
                <Setter Property="MinWidth" Value="100"/>
                <Setter Property="SnapsToDevicePixels" Value="True" />
                <Setter Property="OverridesDefaultStyle" Value="false" />
                <!--<Setter Property="Foreground" Value="White" />
                <Setter Property="Template" Value="{StaticResource ResourceKey=TemplateButtonDefault}" />-->
            </Style.Setters>
        </Style>

        <Style TargetType="{x:Type Label}">
            <Style.Setters>
                <Setter Property="Margin" Value="5,5,5,5"/>
                <Setter Property="MinWidth" Value="100"/>
            </Style.Setters>
        </Style>
        <Style TargetType="{x:Type TextBox}">
            <Style.Setters>
                <Setter Property="Margin" Value="5,5,5,5"/>
            </Style.Setters>
        </Style>

        <!--<Style TargetType="{x:Type StackPanel}">
            <Style.Setters>
                <Setter Property="Background" Value="{DynamicResource ResourceKey=PanelBackground}"/>
            </Style.Setters>
        </Style>-->

        <Style TargetType="{x:Type ListView}">
            <Style.Setters>
                <Setter Property="Background" Value="{DynamicResource ResourceKey=ListBackground}"/>
            </Style.Setters>
        </Style>
    </Application.Resources>
</Application>
